<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>旋转木马图片展示</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        html, body {
            height: 100%;
        }

        body {
            background-image: url(images/bg.jpg);
            background-repeat: no-repeat;
            background-size: 1920px 100%;
        }

        .big{
            perspective: 1000px;
            width: 240px;
            height: 240px;

            position: absolute;
            bottom: 100px;
            left: 50%;
            margin-left: -120px;
        }

        .box {
            width: 240px;
            height: 240px;
            background-color: red;
            transform-origin: 50%;
            transform-style: preserve-3D;
            animation: slide 18s linear infinite;
        }

        @keyframes slide {
            from {
                transform: rotateY(0deg);
            }
            to {
                transform: rotateY(360deg);
            }
        }

        .box li {
            width: 300px;
            height: 235px;
            position: absolute;
        }

        .box:hover{
            animation-play-state: paused;
        }

        .box li:hover img{
            transition: all .5s;
            transform: scale(1.2);
        }

        .box li:nth-child(1) {
            transform: rotateY(0deg) translateZ(300px);
        }

        .box li:nth-child(2) {
            transform: rotateY(60deg) translateZ(300px);
        }

        .box li:nth-child(3) {
            transform: rotateY(120deg) translateZ(300px);
        }

        .box li:nth-child(4) {
            transform: rotateY(180deg) translateZ(300px);
        }

        .box li:nth-child(5) {
            transform: rotateY(240deg) translateZ(300px);
        }

        .box li:nth-child(6) {
            transform: rotateY(300deg) translateZ(300px);
        }

        .box img {
            width: 100%;
            height: 100%;
            vertical-align: top;
        }
    </style>
</head>
<body>
<div class="big">
    <div class="box">
        <ul>
            <li><img src="images/6.jpg" alt=""></li>
            <li><img src="images/5.jpg" alt=""></li>
            <li><img src="images/4.jpg" alt=""></li>
            <li><img src="images/3.jpg" alt=""></li>
            <li><img src="images/2.jpg" alt=""></li>
            <li><img src="images/1.jpg" alt=""></li>
        </ul>
    </div>
</div>
</body>
</html>